<?php 
/**
 * AuthenticationHandler determines the method of Authentication for a user.
 *
 * @author  Sean Kerr
 * @package mojavi
 * @package auth
 * @since   2.0
 */ 
class AuthenticationHandler
{

    /**
     * Create a new AuthenticationHandler instance.
     *
     * @access public
     * @since  2.0
     */
    function AuthenticationHandler ()
    {

    }

    /**
     * Determine the user login Authentication status.
     *
     * <br/><br/>
     *
     * <note>
     *     This should never be called manually.
     * </note>
     *
     * @param Controller A Controller instance.
     * @param User       A User instance.
     *
     * @access public
     * @since  2.0
     */
    function login (&$controller,&$user)
    {

        $error = 'AuthenticationHandler::login(&$controller, &$request) must be overridden';

        trigger_error($error, E_USER_ERROR);

        exit;

    }
    /**
     * Determine the user logout  Authentication status
     *
     * <br/><br/>
     *
     * <note>
     *     This should never be called manually.
     * </note>
     *
     * @param Controller A Controller instance.
     * @param User       A User instance.
     *
     * @access public
     * @since  2.0
     */
    function logout (&$controller,&$user)
    {

        $error = 'AuthenticationHandler::login(&$controller, &$request) must be overridden';

        trigger_error($error, E_USER_ERROR);

        exit;

    }

    
}
?>